package main;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
public class SuChange extends JFrame implements MouseMotionListener,MouseListener{
    Button button;
    public SuChange() {
        setTitle("成功修改");
        setBackground(Color.white);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setBounds(70,70, 510, 330);
        JPanel contentPane = new JPanel();
        contentPane.setBackground(Color.white);
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        setContentPane(contentPane);
        contentPane.setLayout(null);



        Label label_3 = new Label("修改成功");
        label_3.setAlignment(Label.CENTER);
        label_3.setBackground(Color.white);
        label_3.setFont(new Font("Dubai", Font.PLAIN, 30));
        label_3.setBounds(67, 108, 355, 45);
        contentPane.add(label_3);


        button = new Button();
        button.setLabel("确认");
        button.setFont(new Font("Dialog", Font.PLAIN, 20));
        button.setBackground(Color.white);
        button.setBounds(147, 208, 160, 25);
        contentPane.add(button);
        button.addMouseListener(this);
        this.addMouseMotionListener(this);
    }

    @Override
    public void mouseClicked(MouseEvent e) {
        if (e.getSource()== button){

            CusLog frame = new CusLog();
            frame.setVisible(true);

            setVisible(false);
        }

    }

    @Override
    public void mouseEntered(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseExited(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mousePressed(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseReleased(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseDragged(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseMoved(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }
}
